package com.buer.storage.service;

import com.buer.storage.dto.DepartmentDto;
import com.buer.storage.entity.Department;

import java.util.List;

//库位管理
public interface DepartmentService {

    //增加库位
    int add(DepartmentDto departmentDto);

    //删除库位
    int delete(Integer departmentId);

    //修改库位
    int update(DepartmentDto departmentDto);

    //查询所有库位
    List<Department> select();

    Department getDepartmentByName(String departmentCode);
}
